cmake_minimum_required(VERSION 3.24)
project(cpp_httplib_chatGPT3)

set(CMAKE_CXX_STANDARD 17)

include_directories(include)
add_executable(cpp_httplib_chatGPT3 main.cpp)


find_package(OpenSSL REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE OpenSSL::SSL OpenSSL::Crypto)

find_package(CURL CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE CURL::libcurl)

find_package(nlohmann_json CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE nlohmann_json::nlohmann_json)

#target_link_libraries(${PROJECT_NAME} nlohmann_json::nlohmann_json)